package br.com.obardavez.util;

import java.io.File;
import java.io.InputStream;
import java.io.Serializable;
import java.util.List;

import org.w3c.dom.Document;
import org.w3c.dom.Node;

import br.com.obardavez.util.impl.XmlUtilImpl;

import com.google.inject.ImplementedBy;

@ImplementedBy(XmlUtilImpl.class)
public interface XmlUtil extends Serializable {

	String format(Document doc);

	Document readFile(File file);

	Document readInputStream(InputStream is);

	String readChildNodeValue(Node node, String childNodeName);

	Node findChildNodeByName(Node parentNode, String childNodeName);
	
	List<Node> findChildNodesByName(Node parentNode, String childNodeName);
}
